<?php
use core\G;
use core\Func;

$_wapper=G::get("Wapper_settings");
$_wapper_title_id="wrapper-page-texttitle";
$_wapper_breadcrumb_id="wrapper-page-texttitle";
$_wapper_title="";
$_wapper_breadcrumb="";
$_wapper_panel="";
$_wapper_show=true;
if (!empty($_wapper)){
  if (isset($_wapper["show"])){
    if (!$_wapper["show"]) $_wapper_show=false;
  }
  if (!empty($_wapper["title"])){
    $_wapper_title_id="wrapper-page-texttitle-disable";
    $_wapper_title=$_wapper["title"];
  }
  if (!empty($_wapper["breadcrumb"])){
    $_wapper_breadcrumb_id="wrapper-page-texttitle-disable";
    $_wapper_breadcrumb="";

    foreach (Func::str2arr($_wapper["breadcrumb"]) as $v) {
      $_wapper_breadcrumb.='<li class="breadcrumb-item active">'.$v.'</li>';
    }

  }
  if (!empty($_wapper["panel"])){
    $_wapper_panel=$_wapper["panel"];
  }

}

if ($_wapper_show){
?>


<div class="row page-titles">
    <div class="col-md-5 col-8 align-self-center">
        <h3 id="{$_wapper_title_id}" class="text-themecolor">{$_wapper_title|raw}</h3>
        <ol id="{$_wapper_breadcrumb_id}" class="breadcrumb">{$_wapper_breadcrumb|raw}
            <!-- <li class="breadcrumb-item"><a href="javascript:void(0)">Home</a></li> -->
        </ol>

    </div>
    <div class="col-md-7 col-4 align-self-center">
        <div class="d-flex m-t-10 justify-content-end">
            <!-- <div class="d-flex m-r-20 m-l-10 hidden-md-down">
                <div class="chart-text m-r-10">
                    <h6 class="m-b-0"><small>THIS MONTH</small></h6>
                    <h4 class="m-t-0 text-info">$58,356</h4></div>
                <div class="spark-chart">
                    <div id="monthchart"></div>
                </div>
            </div> -->
            <div class="">{$_wapper_panel|raw}


            </div>
        </div>
    </div>
</div>
<?php
}
?>
